package com.whsm.boot05.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class ViewTestController {

    @GetMapping("/hello")
    public String test(Model model){
        model.addAttribute("msg","hello gongziheng!");
        model.addAttribute("url","https://www.baidu.com");
        return "success";
    }
}
